<?php
function get_category_name($id){
 $name =  db('NormCategory')->where('id',$id)->value('name');
 return $name;
}


function get_source_name($id){
 $name =  db('sources')->where('id',$id)->value('name');
 return $name;
}


function get_field_name($field){
 $name =  db('normField')->where('field',$field)->value('name');
 return $name;
}



